package com.wukaige.goods.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author wukaige
 * @since 2021-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "gid", type = IdType.AUTO)
    private Integer gid;

    /**
     * 商品名称
     */
    @TableField("gname")
    private String gname;

    /**
     * 商品图片
     */
    @TableField("pic")
    private String pic;

    /**
     * 商品价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 商品数量
     */
    @TableField("goodsum")
    private Integer goodsum;

    /**
     * 商品数量
     */
    @TableField("invent")
    private Integer invent;

    /**
     * 商品颜色
     */
    @TableField("color")
    private String color;

    /**
     * 商家id
     */
    @TableField("bid")
    private Integer bid;

    /**
     * 类型id
     */
    @TableField("tid")
    private Integer tid;

    /**
     * 商家
     */
    @TableField(exist = false)
    private String bname;

    /**
     * 类型
     */
    @TableField(exist = false)
    private String tname;

    @Version
    private Integer version;
}
